package com.yypinger.common.vaadin;

import com.vaadin.ui.Table;

public class TableColumnDefinition {

		/**
		 * 列唯一标示
		 */
		private String columnId;
		
		/**
		 * 列标题
		 */
		private String columnHeader;
		
		/**
		 * 列排列
		 */
		private String columnAlignment;
		/**
		 * 列类型
		 */
		private Class<?> columnType;
		
		/**
		 * 是否可见
		 */
		private boolean visible;
		
		/**
		 * 列默认值
		 */
		private Object defaultValue;
		
		/**
		 * 列生成器
		 */
		private Table.ColumnGenerator columnGenerator;

		public String getColumnId() {
			return columnId;
		}

		public void setColumnId(String columnId) {
			this.columnId = columnId;
		}

		public String getColumnHeader() {
			return columnHeader;
		}

		public void setColumnHeader(String columnHeader) {
			this.columnHeader = columnHeader;
		}

		public String getColumnAlignment() {
			return columnAlignment;
		}

		public void setColumnAlignment(String columnAlignment) {
			this.columnAlignment = columnAlignment;
		}

		public Class<?> getColumnType() {
			return columnType;
		}

		public void setColumnType(Class<?> columnType) {
			this.columnType = columnType;
		}

		
		/*
		public boolean isVisible() {
			return visible;
		}

		public void setVisible(boolean visible) {
			this.visible = visible;
		}
		*/

		public Object getDefaultValue() {
			return defaultValue;
		}

		public void setDefaultValue(Object defaultValue) {
			this.defaultValue = defaultValue;
		}

		public Table.ColumnGenerator getColumnGenerator() {
			return columnGenerator;
		}

		public void setColumnGenerator(Table.ColumnGenerator columnGenerator) {
			this.columnGenerator = columnGenerator;
		}  
		
		
}
